package com.project.m.api.busi.db.repo.distributor;

import com.project.m.api.busi.db.entity.hicatcard.distributor.TDistributor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DistributorRepo extends JpaRepository<TDistributor, Long>, JpaSpecificationExecutor<TDistributor> {

    List<TDistributor> findByDistributorNumberAndEnable(String distributorNumber, Boolean enable);

    TDistributor findByDistributorId(Long distributorId);
}
